"""Tests that TAPA can generate meaningful reports."""

# Copyright (c) 2025 RapidStream Design Automation, Inc. and contributors.
# All rights reserved. The contributor(s) of this file has/have agreed to the
# RapidStream Contributor License Agreement.

load("@tapa_deps//:requirements.bzl", "requirement")
load("//bazel:pytest_rules.bzl", "py_test")
load("//bazel:tapa_rules.bzl", "tapa_xo")

tapa_xo(
    name = "enable-synth-util-xo",
    src = "//tests/apps/vadd:vadd.cpp",
    hdrs = ["//tests/apps/vadd:vadd.h"],
    include = ["."],
    enable_synth_util = True,
    output_file = "enable-synth-util.xo",
    platform_name = "xilinx_u250_gen3x16_xdma_4_1_202210_1",
    top_name = "VecAdd",
)

py_test(
    name = "enable-synth-util-test",
    srcs = ["enable-synth-util-test.py"],
    data = [":enable-synth-util-xo"],
    deps = [
        "@rules_python//python/runfiles",
        requirement("pyyaml"),
    ],
)
